{"version":3,"file":"block.map.js","names":["BX","namespace","deepFreeze","Landing","Utils","style","insertAfter","insertBefore","append","isPlainObject","isBoolean","isNumber","isString","isArray","isEmpty","addClass","removeClass","hasClass","toggleClass","create","debounce","throttle","fireCustomEvent","onCustomEvent","bind","unbind","getClass","rect","setTextContent","translateY","nextSibling","prevSibling","join","slice","decodeDataValue","encodeDataValue","data","attr","removePanels","getCSSSelector","remove","clone","trim","prepend","random","htmlToElement","proxy","escapeText","isValidElementId","BaseCollection","Collection","NodeCollection","FormCollection","UI","CardCollection","PanelCollection","BaseButtonPanel","Panel","CardActionPanel","CardAction","ContentEditPanel","ContentEdit","BaseButton","Button","ActionButton","PlusButton","Plus","CardActionButton","StyleFactory","Factory","BaseForm","Form","StyleForm","CardForm","CardsForm","Group","BlockEvent","Event","Block","TabCard","Card","DynamicFieldsGroup","ACCESS_D","ACCESS_V","ACCESS_W","ACCESS_X","getTypeSettings","prop","lp","Main","getInstance","namespaces","Object","keys","options","i","length","type","attrKey","items","concat","getAttrsTypeSettings","attrs","isGroup","getGroupTypes","group","showButtonLoader","button","loader","Loader","target","layout","size","querySelector","show","text","hideButtonLoader","hide","isNodeSelector","selector","includes","onBlockInitDebounced","PageObject","getBlocks","forEach","block","adjustSortButtonsState","element","this","node","parent","parentElement","content","firstElementChild","siteId","lid","id","parseInt","repoId","active","allowedByTariff","manifest","nodes","cards","onStyleInputWithDebounce","onStyleInput","changeTimeout","php","designed","access","anchor","savedAnchor","requiredUserActionOptions","requiredUserAction","dynamicParams","sections","split","panels","groups","changedNodes","styles","forms","menu","showRequiredUserAction","requiredUserActionIsShown","onEditorEnabled","onEditorDisabled","adjustPanelsPosition","onMouseMove","onStorage","onBlockRemove","classList","state","initPanels","initStyles","initMenu","adjustContextSensitivityStyles","envOptions","Env","getOptions","specialType","isDefaultCrmFormBlock","showOptions","formId","formEditorData","formOptions","getCrmFormOptions","showWithOptions","uri","Uri","window","top","location","toString","Text","toBoolean","getQueryParam","FormSettingsPanel","push","eventData","createEvent","storage","BlockCollection","prototype","initEntities","lazyInitPanels","getBlockNode","isAllowedByTariff","container","targetNodeSelector","innerHTML","header","description","href","onClick","className","event","preventDefault","evalGlobal","err","console","error","disableLinks","querySelectorAll","item","isChildOfNode","some","contains","isMenuItem","root","getByNode","pointerEvents","selectors","needAdjust","filter","indexOf","columnsSettings","styleNode","get","setIsSelectGroup","setValue","unsetIsSelectGroupFlag","blockStyleNode","saveStyles","forceInit","card","onForceInit","initCards","initNodes","initGroups","entries","map","entry","code","value","Menu","initCardsLabels","label","createCardLabel","groupsIds","groupId","reduce","accumulator","nodeIndex","key","add","name","onGroupClick","StylePanel","isShown","showContentPanel","compact","nodesOnly","showAll","hideCheckbox","createPanel","addButton","Loc","getMessage","addBlockAfterThis","addPanel","isCrmFormPage","createBeforePanel","addBlockBeforeThis","buttons","on","onCreateButtonMouseover","onCreateButtonMouseout","isLastChildInArea","areas","getLayoutAreas","addBlockPanel","setText","clearTimeout","fadeTimeout","setTimeout","area","isInSidebar","closest","initSidebarActionPanel","sidebarActionsPanel","onShowSidebarActionsClick","showFeedbackForm","showSliderFeedbackForm","blockName","blockCode","blockSection","section","landingId","blockActionsMenu","close","sidebarActionsMenu","bindElement","MenuManager","angle","position","offset","offsetTop","offsetLeft","events","onPopupClose","deactivate","MenuItem","onclick","onShowContentPanel","onStyleShow","isDesignBlockAllowed","onDesignerBlockClick","delimiter","allPlacements","placements","blocks","placementsList","getRootWindow","rest","AppLayout","codes","c","MessageInterface","initializePlacement","refreshBlock","params","cb","reload","then","placement","title","onPlacementClick","moveDown","moveUp","isEnabled","isChangeStateBlockAllowed","onStateChange","isRemoveBlockAllowed","onCutBlock","onCopyBlock","localStorage","landingBlockName","isPasteBlockAllowed","onPasteBlock","isSaveBlockInLibraryAllowed","saveBlock","deleteBlock","contentPanel","html","onCollapseActionPanel","separate","disabled","isStyleModifyAllowed","onPlacementButtonClick","blockDisplay","onBlockDisplayMouseenter","onBlockDisplayMouseleave","blockPanel","getBlockFromRepository","restricted","restrictedButton","onRestrictedButtonClick","onRestrictedButtonMouseenter","onRestrictedButtonMouseleave","showBlockActionsMenu","categories","category","find","categoryId","openApplication","app_id","ID","CODE","LID","PLACEMENT","PLACEMENT_ID","blockPlacementsActionsMenu","activate","blockActionButton","blockActionMenuId","menuItems","PopupMenuWindow","oldContent","Backend","action","editMode","response","sliderUrl","sef_url","replace","getDeviceCode","SidePanel","Instance","open","cacheable","allowChangeHistory","requestMethod","customLeftBoundary","onClose","newContent","History","metrika","Metrika","sendLabel","isCrmFormBlock","isEditBlockAllowed","landingBlockId","showSaveBlock","displayBlockTimer","Tool","Suggest","currentTarget","props","outerHTML","getBlockDisplayItems","createItem","mod","children","toUpperCase","result","appendChild","blockRect","contentActionsPanel","blockActionsPanel","height","getMenuItem","setAttribute","useSmallOffset","landing","onPopupShow","EventEmitter","emit","preventHistory","prev","current","Promise","all","transform","transition","next","panel","topWindow","document","body","getBlockFormId","formScriptNode","Type","isDomNode","Dom","isStringFilled","parsedFormId","instanceId","formUid","previousSibling","firstChild","formNode","useAllowed","primaryMatcher","designOptions","primaryColor","documentElement","color","match","design","capitalize","rootWindow","resolve","Runtime","loadExtension","EditorPanel","disable","enable","getLayout","labelSelectors","cardNodes","currentNode","labelNode","currentLabel","Node","getValue","innerText","getField","Link","Icon","Img","src","clear","forEachCard","index","cardSelector","isDynamicCards","allowInlineEdit","instance","cardAction","stopPropagation","sync","syncedSelectors","currentSyncSelector","cloneCard","removeCard","sortIndex","adjustCardRemoveButton","sort","a","b","getIndex","getBySelector","cloneButton","requestData","queryParams","self","clonePromise","clonedCard","catch","reject","removeButton","removePromise","afterEvent","cardIntoSlider","cardsParent","lastCardInCollection","cardsAmount","addCard","settings","addPromise","targetCard","parentNode","callback","cardSelectors","apply","forEachNodeElements","nodeSelector","handler","presetNode","disallowField","presetId","dataset","cardPreset","matches","presets","disallow","isDisallow","disallowSelector","isDynamic","currentCard","cardCode","isCardNode","onChange","onNodeChange","onChangeOptions","onNodeOptionsChange","onAttributeChange","onDesignShow","showStylePanel","uploadParams","hidden","requestBody","formName","compactMode","subTitle","onSaveHandler","onContentSave","onCancelHandler","onContentCancel","Color","LIGHT_BORDER","round","render","right","getRestrictedMessage","tmpContent","preset","getEditForms","form","appendForm","lastBlockState","fetchRequestData","createHistoryEntry","newState","states","undoState","redoState","Entry","command","undo","redo","updateContent","updatePromise","replaceAll","reloadPromise","updateBlockState","currentState","applyMenuChanges","applyContentChanges","applyCardsChanges","applyAttributeChanges","applySettingsChanges","saveChanges","warn","contentForms","childForms","childForm","fetchFields","field","tag","onChangeTag","formSelector","acc","getPostfix","expandTypeGroups","types","groupType","createStyleForm","isBlock","styleFactory","frame","postfix","iframe","typeSettings","createField","makeRelativeSelector","property","multiple","pseudoElement","pseudoClass","subtype","help","onReset","affect","BaseEvent","exclude","fields","reset","getNode","repo","createElement","display","targetNode","targetSelector","getElementIndex","getTargetElement","fakeStyleNode","Style","relativeSelector","initFieldByStyleNode","resetStyleValue","resetClasses","currStyleValue","currIndex","setInlineProperty","getInlineProperties","setComputedProperty","getComputedProperties","setPseudoElement","getPseudoElement","preventEvent","styleValue","addField","popup","onStyleClick","Content","scrollTo","makeAbsoluteSelector","fetchChanges","isSelectGroup","post","fetchValues","Reflection","formMode","isControlsExternal","isBlockSelector","getStyleOptions","isMultiselection","stylePanel","clearContent","FormStyleAdapter","formStyleAdapter","currentBlock","load","log","prepareFooter","getStyleForm","additional","createAdditionalForm","attrsType","isArrayFilled","accessDeniedCode","isAccessDenied","String","getAccessMessage","accessMessage","prepareBlockOptions","attrsSet","isUndefined","atr","attrSetItem","attrOptions","currentSelector","tabs","tabOptions","createAttributeField","subscribe","prepareAttributeValue","dependencySet","dependency","attribute","fieldFactory","createFieldFactory","getElementBySelector","selectorFragments","elements","getElementsBySelector","fieldOptions","undefined","isNil","attributeChangeTimeout","appendAttrFieldValue","appendSettingsFieldValue","attrData","itemValue","e","appendMenuValue","serialize","FieldFactory","site_id","linkOptions","onValueChange","destroy","getItem","removeItem","getFormEditorAddBlockTour","Tour","Guide","steps","formSettingsPanel","isChanged","showBlocksPanel","start","getFormEditorDesignTour","onFormDesignClick","isSavePrevented","fetchAdditionalValues","containsPseudoSelector","containsReloadRequireAttributes","requireReload","TypeError","valuePromises","valuePromise","preventSave","menuKeys","menuItem","rebuild","forceReload","nodePromises","oldCards","values","indexes","source","newValue","oldValue","url","JSON","stringify","nodePromise","selectorKey","mapKey","cardKey","decodedValue","updateNodeParams","updateNodesData","batch","changeAnchor","updateNodes","cardsData","cardsSelectors","arrayUnique","cardsNodesAdditionalValues","updateCards","cardsFirst","oldBatch","collection","dynamicCards","dynamicBlock","appendContentFieldValue","attrFields","appendCardsFormValue","appendDynamicCardsFormValue","appendDynamicBlockFormValue","dynamicState","cardsCode","wrapper","getUsedPresets","getIndexesMap","isNeedReload","zIndex","showOverlay","currentArea","addBlock","hideOverlay","assign","getCardsSelector","allCards","allCardsChild","styleEvent","getBlockEditForm","preparedOptions","blockNodes","notMatches","getVisible","allowFormEdit","onBlockFormTypeChangeHandler","onBlockFormTypeChange","skipBlockState","helps","DYNAMIC_BLOCKS","headerCheckbox","blockForm","formDescription","dynamic","getMenuEditForms","getForm","getAttrsEditForm","attrsForm","attrsFormDescription","getAttrsAdditionalEditForms","getCardsEditForms","skipState","nodesSelectors","groupedCards","set","Map","checkboxState","onCardsFormTypeHandler","onCardsFormTypeChange","groupLabel","cardsForm","cardForm","getLabel","getName","labelBindings","sortedCardNodes","attrField","addPresetForm","addChildForm","getBlockSettingsForm","blockSettingsForm","errorMessage","baseUrl","origin","previewText","anchorField","encode","onInput","preview","decode","getElementById","Field","BaseField","createDescription","arguments","skipCardsState","isEditable","blockEditForm","menuEditForms","menuForm","attrsEditForm","attrsAdditionalEditForms","cardsEditForms","isLastBlockInArea","actionPanel","getFieldType","getTypeReferences","references","reference","convertReferencesToDropdownItems","getDefaultDropdownItems","getDynamicFiledValue","fieldSelector","convertToDynamicFields","typeReferences","dropDownItems","actions","ClickAction","linkField","DynamicImage","dropdownItems","DynamicDropdown","createDynamicCardsForm","dynamicForm","DynamicCardsForm","onSourceChange","dynamicFields","dynamicGroup","detailPageField","detailPageGroup","default","detail","hrefInput","makeDisplayedHrefValue","oldCard","replaceCard","isDynamicEnabled","dynamicCardParams","pagesCount","replaceForm","staticForm","restrictMessage","createDynamicBlockForm","DynamicBlockForm","toArray","isCheckboxChecked"],"sources":["block.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,cAGb,IAAIC,EAAaF,GAAGG,QAAQC,MAAMF,WAClC,IAAIG,EAAQL,GAAGG,QAAQC,MAAMC,MAC7B,IAAIC,EAAcN,GAAGG,QAAQC,MAAME,YACnC,IAAIC,EAAeP,GAAGG,QAAQC,MAAMG,aACpC,IAAIC,EAASR,GAAGG,QAAQC,MAAMI,OAC9B,IAAIC,EAAgBT,GAAGG,QAAQC,MAAMK,cACrC,IAAIC,EAAYV,GAAGG,QAAQC,MAAMM,UACjC,IAAIC,EAAWX,GAAGG,QAAQC,MAAMO,SAChC,IAAIC,EAAWZ,GAAGG,QAAQC,MAAMQ,SAChC,IAAIC,EAAUb,GAAGG,QAAQC,MAAMS,QAC/B,IAAIC,EAAUd,GAAGG,QAAQC,MAAMU,QAC/B,IAAIC,EAAWf,GAAGG,QAAQC,MAAMW,SAChC,IAAIC,EAAchB,GAAGG,QAAQC,MAAMY,YACnC,IAAIC,EAAWjB,GAAGG,QAAQC,MAAMa,SAChC,IAAIC,EAAclB,GAAGG,QAAQC,MAAMc,YACnC,IAAIC,EAASnB,GAAGG,QAAQC,MAAMe,OAC9B,IAAIC,EAAWpB,GAAGG,QAAQC,MAAMgB,SAChC,IAAIC,EAAWrB,GAAGG,QAAQC,MAAMiB,SAChC,IAAIC,EAAkBtB,GAAGG,QAAQC,MAAMkB,gBACvC,IAAIC,EAAgBvB,GAAGG,QAAQC,MAAMmB,cACrC,IAAIC,EAAOxB,GAAGG,QAAQC,MAAMoB,KAC5B,IAAIC,EAASzB,G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